package com.mjk.common.ai.entity;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import com.mjk.common.core.jdbc.service.idgenerator.IdGenerateType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户每天使用量
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ArcSharding(dataSource = "pg", table = "adi_user_day_cost")
public class UserDayCost extends BaseEntity {

    @Id(type = IdGenerateType.AUTO_UUID)
    private Long id;

    @Filed(cloum = "create_time")
    private LocalDateTime createTime;

    @Filed(cloum = "update_time")
    private LocalDateTime updateTime;

    @Filed(cloum = "is_deleted", comment = "是否删除（0：未删除，1：已删除）")
    private Boolean isDeleted;

    @Filed(cloum = "user_id", comment = "用户id")
    private Long userId;

    @Filed(cloum = "day", comment = "日期")
    private Integer day;

    @Filed(cloum = "request_times", comment = "请求量")
    private Integer requestTimes;

    @Filed(cloum = "tokens", comment = "token数量")
    private Integer tokens;

    @Filed(cloum = "draw_times", comment = "绘图次数")
    private Integer drawTimes;

    @Filed(cloum = "is_free", comment = "是：免费额度；否：收费额度")
    private Boolean isFree;
}
